{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "4c296a32-1a0c-40e9-8e44-696db2c25eef",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/markdown": [
       "[local link](#Title)"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# dummy\n",
    "from IPython.display import Markdown\n",
    "\n",
    "Markdown('[local link](#Title)')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f075900d-442f-40b3-842d-9575568d434b",
   "metadata": {
    "tags": []
   },
   "outputs": [],
   "source": [
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    ""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "f075910d-442f-40b3-842d-9575568d434b",
   "metadata": {
    "tags": []
   },
   "outputs": [],
   "source": [
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    ""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "f075900d-442f-40b3-842d-9575569d434b",
   "metadata": {
    "tags": []
   },
   "outputs": [],
   "source": [
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "\n",
    ""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "38df214e-2057-446e-b325-4e8c91d9232b",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style>\n",
       "    .jp-Notebook-cell { padding-left: 100px; }\n",
       "    .jp-Notebook-cell::after { content: 'CSS ::after element'; }\n",
       "</style>\n"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%%html\n",
    "<style>\n",
    "    .jp-Notebook-cell { padding-left: 100px; }\n",
    "    .jp-Notebook-cell::after { content: 'CSS ::after element'; }\n",
    "</style>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "94bab22b-5cfa-40fa-bef8-912a2311e5d6",
   "metadata": {
    "tags": []
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script type=\"module\">\n",
       "setInterval(() => {\n",
       "    const injected = document.body.querySelectorAll('[data-origin=\"html\"]');\n",
       "    for(const span of injected) {\n",
       "        span.remove();\n",
       "    }\n",
       "    const cells = document.body.querySelectorAll('.jp-Notebook-cell');\n",
       "    for(const cell of cells) {\n",
       "        cell.insertAdjacentHTML('beforeend', '<span data-origin=\"html\">JavaScript injected from HTML</span>')\n",
       "    }\n",
       "}, 300)\n",
       "</script>\n"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%%html\n",
    "<script type=\"module\">\n",
    "setInterval(() => {\n",
    "    const injected = document.body.querySelectorAll('[data-origin=\"html\"]');\n",
    "    for(const span of injected) {\n",
    "        span.remove();\n",
    "    }\n",
    "    const cells = document.body.querySelectorAll('.jp-Notebook-cell');\n",
    "    for(const cell of cells) {\n",
    "        cell.insertAdjacentHTML('beforeend', '<span data-origin=\"html\">JavaScript injected from HTML</span>')\n",
    "    }\n",
    "}, 300)\n",
    "</script>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "1cc90740-d880-497a-911f-004ae49bb249",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/javascript": [
       "setInterval(() => {\n",
       "    const injected = document.body.querySelectorAll('[data-origin=\"javascript\"]');\n",
       "    for(const span of injected) {\n",
       "        span.remove();\n",
       "    }\n",
       "    const cells = document.body.querySelectorAll('.jp-Notebook-cell');\n",
       "    for(const cell of cells) {\n",
       "        cell.insertAdjacentHTML('afterbegin', '<span data-origin=\"javascript\">JavaScript injected header</span>')\n",
       "    }\n",
       "}, 300)\n"
      ],
      "text/plain": [
       "<IPython.core.display.Javascript object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%%javascript\n",
    "setInterval(() => {\n",
    "    const injected = document.body.querySelectorAll('[data-origin=\"javascript\"]');\n",
    "    for(const span of injected) {\n",
    "        span.remove();\n",
    "    }\n",
    "    const cells = document.body.querySelectorAll('.jp-Notebook-cell');\n",
    "    for(const cell of cells) {\n",
    "        cell.insertAdjacentHTML('afterbegin', '<span data-origin=\"javascript\">JavaScript injected header</span>')\n",
    "    }\n",
    "}, 300)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.15"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
